package com.javaspeak.designpatterns.go4.structural.flyweight;

/**
 * Defines pixels for a Square
 *
 * @author John Dickerson
 */
public class SquareImpl extends Shape {

    /**
     * Constructor
     */
    public SquareImpl(){

        //   1 1 1 1
        //   1     1
        //   1     1
        //   1 1 1 1

        points = new int[4][4];
        points[ 0 ][ 0 ] = 1;
        points[ 0 ][ 1 ] = 1;
        points[ 0 ][ 2 ] = 1;
        points[ 0 ][ 3 ] = 1;
        points[ 1 ][ 0 ] = 1;
        points[ 1 ][ 3 ] = 1;
        points[ 2 ][ 0 ] = 1;
        points[ 2 ][ 3 ] = 1;
        points[ 3 ][ 0 ] = 1;
        points[ 3 ][ 1 ] = 1;
        points[ 3 ][ 2 ] = 1;
        points[ 3 ][ 3 ] = 1;
    }
}
